package com.three.work.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 茶城通用户表
 * </p>
 *
 * @author 张子艺
 * @since 2020-04-01
 */
@TableName("user")
@ApiModel(value="User对象", description="茶城通用户表")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "微信或者支付宝小程序id")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "微信或者支付宝")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "昵称")
    @TableField("nick")
    private String nick;

    @ApiModelProperty(value = "照片")
    @TableField("photo")
    private String photo;

    @ApiModelProperty(value = "密码")
    @TableField("pass_word")
    private String passWord;

    @ApiModelProperty(value = "是否实名")
    @TableField("ischeck")
    private String ischeck;

    @ApiModelProperty(value = "注册时间")
    @TableField("reg_time")
    private String regTime;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "性别")
    @TableField("gereen")
    private Integer gereen;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    public String getIscheck() {
        return ischeck;
    }

    public void setIscheck(String ischeck) {
        this.ischeck = ischeck;
    }
    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Integer getGereen() {
        return gereen;
    }

    public void setGereen(Integer gereen) {
        this.gereen = gereen;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", openid=" + openid +
            ", source=" + source +
            ", userName=" + userName +
            ", nick=" + nick +
            ", photo=" + photo +
            ", passWord=" + passWord +
            ", ischeck=" + ischeck +
            ", regTime=" + regTime +
            ", phone=" + phone +
            ", gereen=" + gereen +
        "}";
    }
}
